#include <ledParamTables.h>
/* Efficiency is 1024 @25C , the value is 990*1024/1000 when efficiency is 99.0% */ 
static const TempParams_t TEMP_CURVE_TABLE_RED[TEMP_CMP_NUM_MAX] = 
{
    /*T(1C) efficiency deltaV(mV) x(%), y(%) */
/*0*/{1187U,16,1020U,1032U},
/*2*/{1174U,37,1020U,1031U},
/*4*/{1160U,41,1021U,1030U},
/*6*/{1146U,32,1021U,1030U},
/*8*/{1133U,32,1021U,1029U},
/*10*/{1119U,28,1021U,1028U},
/*12*/{1105U,21,1022U,1028U},
/*14*/{1092U,15,1022U,1027U},
/*16*/{1078U,14,1022U,1026U},
/*18*/{1064U,11,1023U,1026U},
/*20*/{1051U,10,1023U,1025U},
/*22*/{1037U,7,1023U,1024U},
/*24*/{1024U,0,1024U,1024U},
/*26*/{1010U,-3,1024U,1023U},
/*28*/{996U,-4,1024U,1022U},
/*30*/{983U,-10,1024U,1021U},
/*32*/{969U,-13,1025U,1021U},
/*34*/{955U,-17,1025U,1020U},
/*36*/{942U,-21,1025U,1019U},
/*38*/{928U,-24,1026U,1019U},
/*40*/{914U,-28,1026U,1018U},
/*42*/{901U,-31,1026U,1017U},
/*44*/{887U,-34,1026U,1017U},
/*46*/{873U,-37,1027U,1016U},
/*48*/{860U,-40,1027U,1015U},
/*50*/{846U,-44,1027U,1015U},
/*52*/{832U,-46,1028U,1014U},
/*54*/{819U,-49,1028U,1013U},
/*56*/{805U,-54,1028U,1013U},
/*58*/{791U,-57,1029U,1012U},
/*60*/{778U,-60,1029U,1011U},
/*62*/{764U,-61,1029U,1011U},
/*64*/{751U,-64,1029U,1010U},
/*66*/{737U,-70,1030U,1009U},
/*68*/{723U,-73,1030U,1009U},
/*70*/{710U,-76,1030U,1008U},
/*72*/{696U,-78,1031U,1007U},
/*74*/{682U,-82,1031U,1007U},
/*76*/{669U,-85,1031U,1006U},
/*78*/{655U,-88,1031U,1005U},
/*80*/{641U,-91,1032U,1005U},
/*82*/{628U,-94,1032U,1004U},
/*84*/{614U,-97,1032U,1003U},
/*86*/{600U,-100,1033U,1003U},
/*88*/{587U,-103,1033U,1002U},
/*90*/{573U,-107,1033U,1001U},
/*92*/{559U,-109,1034U,1001U},
/*94*/{546U,-112,1034U,1000U},
/*96*/{532U,-115,1034U,999U},
/*98*/{519U,-119,1034U,999U},
/*100*/{505U,-121,1035U,998U},
/*102*/{491U,-124,1035U,997U},
/*104*/{478U,-128,1035U,997U},
/*106*/{464U,-131,1036U,996U},
/*108*/{450U,-134,1036U,995U},
/*110*/{437U,-137,1036U,995U},
/*112*/{423U,-140,1036U,994U},
/*114*/{409U,-144,1037U,993U},
/*116*/{396U,-147,1037U,993U},
/*118*/{382U,-150,1037U,992U},
/*120*/{368U,-154,1038U,991U},





};

static const TempParams_t TEMP_CURVE_TABLE_GREEN[TEMP_CMP_NUM_MAX] = 
{

/*0*/{1094U,13,971U,1032U},
/*2*/{1088U,27,975U,1031U},
/*4*/{1082U,30,980U,1030U},
/*6*/{1077U,26,984U,1030U},
/*8*/{1071U,25,988U,1029U},
/*10*/{1065U,21,993U,1028U},
/*12*/{1059U,16,997U,1028U},
/*14*/{1053U,10,1002U,1027U},
/*16*/{1047U,11,1006U,1026U},
/*18*/{1041U,10,1010U,1026U},
/*20*/{1035U,9,1015U,1025U},
/*22*/{1029U,5,1019U,1024U},
/*24*/{1024U,0,1024U,1024U},
/*26*/{1018U,-4,1028U,1023U},
/*28*/{1012U,-5,1032U,1022U},
/*30*/{1006U,-8,1037U,1021U},
/*32*/{1000U,-9,1041U,1021U},
/*34*/{994U,-13,1045U,1020U},
/*36*/{988U,-17,1050U,1019U},
/*38*/{982U,-19,1054U,1019U},
/*40*/{976U,-22,1059U,1018U},
/*42*/{970U,-25,1063U,1017U},
/*44*/{965U,-26,1067U,1017U},
/*46*/{959U,-28,1072U,1016U},
/*48*/{953U,-31,1076U,1015U},
/*50*/{947U,-33,1080U,1015U},
/*52*/{941U,-36,1085U,1014U},
/*54*/{935U,-38,1089U,1013U},
/*56*/{929U,-40,1094U,1012U},
/*58*/{923U,-43,1098U,1012U},
/*60*/{917U,-45,1102U,1011U},
/*62*/{912U,-46,1107U,1010U},
/*64*/{906U,-48,1111U,1010U},
/*66*/{900U,-50,1116U,1009U},
/*68*/{894U,-52,1120U,1008U},
/*70*/{888U,-55,1124U,1008U},
/*72*/{882U,-57,1129U,1007U},
/*74*/{876U,-59,1133U,1006U},
/*76*/{870U,-61,1137U,1006U},
/*78*/{864U,-63,1142U,1005U},
/*80*/{858U,-64,1146U,1004U},
/*82*/{853U,-65,1151U,1003U},
/*84*/{847U,-68,1155U,1003U},
/*86*/{841U,-71,1159U,1002U},
/*88*/{835U,-73,1164U,1001U},
/*90*/{829U,-74,1168U,1001U},
/*92*/{823U,-76,1173U,1000U},
/*94*/{817U,-79,1177U,999U},
/*96*/{811U,-80,1181U,999U},
/*98*/{805U,-82,1186U,998U},
/*100*/{800U,-83,1190U,997U},
/*102*/{794U,-86,1194U,997U},
/*104*/{788U,-88,1199U,996U},
/*106*/{782U,-90,1203U,995U},
/*108*/{776U,-92,1208U,994U},
/*110*/{770U,-94,1212U,994U},
/*112*/{764U,-96,1216U,993U},
/*114*/{758U,-98,1221U,992U},
/*116*/{752U,-100,1225U,992U},
/*118*/{747U,-102,1230U,991U},
/*120*/{741U,-104,1234U,990U},




};

static const TempParams_t TEMP_CURVE_TABLE_BLUE[TEMP_CMP_NUM_MAX] = 
{
    /*T(1C) efficiency deltaV(mV) x(%), y(%) */
/*0*/{1062U,17,1033U,957U},
/*2*/{1059U,33,1032U,962U},
/*4*/{1056U,39,1031U,968U},
/*6*/{1052U,27,1030U,973U},
/*8*/{1049U,27,1030U,979U},
/*10*/{1046U,22,1029U,985U},
/*12*/{1043U,17,1028U,990U},
/*14*/{1040U,11,1027U,996U},
/*16*/{1036U,10,1027U,1001U},
/*18*/{1033U,8,1026U,1007U},
/*20*/{1030U,8,1025U,1012U},
/*22*/{1027U,4,1024U,1018U},
/*24*/{1024U,0,1024U,1024U},
/*26*/{1020U,-3,1023U,1029U},
/*28*/{1017U,-5,1022U,1035U},
/*30*/{1014U,-8,1021U,1040U},
/*32*/{1011U,-9,1020U,1046U},
/*34*/{1008U,-12,1020U,1051U},
/*36*/{1004U,-14,1019U,1057U},
/*38*/{1001U,-18,1018U,1062U},
/*40*/{998U,-21,1017U,1068U},
/*42*/{995U,-25,1017U,1074U},
/*44*/{992U,-26,1016U,1079U},
/*46*/{988U,-28,1015U,1085U},
/*48*/{985U,-29,1014U,1090U},
/*50*/{982U,-32,1014U,1096U},
/*52*/{979U,-35,1013U,1101U},
/*54*/{976U,-38,1012U,1107U},
/*56*/{972U,-41,1011U,1113U},
/*58*/{969U,-43,1011U,1118U},
/*60*/{966U,-45,1010U,1124U},
/*62*/{963U,-47,1009U,1129U},
/*64*/{960U,-50,1008U,1135U},
/*66*/{956U,-52,1008U,1140U},
/*68*/{953U,-54,1007U,1146U},
/*70*/{950U,-56,1006U,1152U},
/*72*/{947U,-59,1005U,1157U},
/*74*/{944U,-61,1005U,1163U},
/*76*/{940U,-63,1004U,1168U},
/*78*/{937U,-64,1003U,1174U},
/*80*/{934U,-66,1002U,1179U},
/*82*/{931U,-69,1002U,1185U},
/*84*/{928U,-71,1001U,1190U},
/*86*/{924U,-73,1000U,1196U},
/*88*/{921U,-75,999U,1202U},
/*90*/{918U,-77,999U,1207U},
/*92*/{915U,-79,998U,1213U},
/*94*/{912U,-81,997U,1218U},
/*96*/{908U,-83,996U,1224U},
/*98*/{905U,-85,995U,1229U},
/*100*/{902U,-88,995U,1235U},
/*102*/{899U,-89,994U,1241U},
/*104*/{896U,-91,993U,1246U},
/*106*/{892U,-92,992U,1252U},
/*108*/{889U,-94,992U,1257U},
/*110*/{886U,-97,991U,1263U},
/*112*/{883U,-99,990U,1268U},
/*114*/{880U,-101,989U,1274U},
/*116*/{876U,-104,989U,1279U},
/*118*/{873U,-106,988U,1285U},
/*120*/{870U,-108,987U,1291U},



};


TempParams_t const * LP_GetTempTableRed(LedNum_t ledIndex)
{
    return TEMP_CURVE_TABLE_RED;
}

TempParams_t const * LP_GetTempTableGreen(LedNum_t ledIndex)
{
    return TEMP_CURVE_TABLE_GREEN;
}

TempParams_t const * LP_GetTempTableBlue(LedNum_t ledIndex)
{
    return TEMP_CURVE_TABLE_BLUE;
}


/*
const AccurateColorXYY_t calibratedColortable[] = 
{
  {21845, 21845, 100, 255,255,255},
  {X0, Y0, 100, 254,254,255},
};
*/



